package com.javabi.boardgame.game.chess;

import com.javabi.boardgame.model.IPlayer;

public enum ChessPlayer implements IPlayer {

	WHITE(ChessColor.WHITE), BLACK(ChessColor.BLACK);

	private final ChessColor color;

	private ChessPlayer(ChessColor color) {
		this.color = color;
	}

	public ChessColor getColor() {
		return color;
	}

	@Override
	public String getName() {
		return name();
	}

}
